﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _35派生类的构造函数
{
    class Sub : Base
    {
        //默认调用父类中无参数的构造方法
        public Sub():base()
        {
            Console.WriteLine("Sub构造函数");
        }
        public Sub(int x, int y) : base(x)
        {
            Console.WriteLine(x + "-x-" + y + "-y-");
        }
    }
}
